
public class People implements Ispeaker {
    
    private String name;
    
    
    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }
    
    public People() {
        super();
    }

    public People(String name) {
        super();
        this.name = name;
    }

    @Override
    public void say(String msg) {
        System.out.println("我是"+name+",我说"+msg);
    }

    @Override
    public void doit(String msg) {
        System.out.println("我是"+name+",我说"+msg);
    }
}
